##base _IFFParseBase
##bias 30
##public
*------- Basic functions
AllocIFF()
OpenIFF(iff,RWmode)(a0,d0)
ParseIFF(iff,Control)(a0,d0)
CloseIFF(iff)(a0)
FreeIFF(iff)(a0)
*-------- Read/Write functions
ReadChunkBytes(iff,buf,nbytes)(a0,a1,d0)
WriteChunkBytes(iff,buf,nbytes)(a0,a1,d0)
ReadChunkRecords(iff,buf,bytesPerRecord,nrecords)(a0/a1,d0/d1)
WriteChunkRecords(iff,buf,bytesPerRecord,nrecords)(a0/a1,d0/d1)
*-------- Context entry/exit
PushChunk(iff,type,id,size)(a0,d0/d1/d2)
PopChunk(iff)(a0)
##private
_reserved()()
##public
*-------- Low-level handler installation
EntryHandler(iff,type,id,pos,handlerhook,object)(a0,d0/d1/d2/a1/a2)
ExitHandler(iff,type,id,pos,handlerhook,object)(a0,d0/d1/d2/a1/a2)
*-------- Built-in chunk/property handlers
PropChunk(iff,type,id)(a0,d0,d1)
PropChunks(iff,propArray,nprops)(a0,a1,d0)
StopChunk(iff,type,id)(a0,d0,d1)
StopChunks(iff,propArray,nprops)(a0,a1,d0)
CollectionChunk(iff,type,id)(a0,d0,d1)
CollectionChunks(iff,propArray,nprops)(a0,a1,d0)
StopOnExit(iff,type,id)(a0,d0,d1)
*-------- Context utilities
FindProp(iff,type,id)(a0,d0,d1)
FindCollection(iff,type,id)(a0,d0,d1)
FindPropContext(iff)(a0)
CurrentChunk(iff)(a0)
ParentChunk(contextNode)(a0)
*-------- LocalContextItem support functions
AllocLocalItem(type,id,ident,dataSize)(d0/d1/d2/d3)
LocalItemData(localItem)(a0)
SetLocalItemPurge(localItem,purgehook)(a0,a1)
FreeLocalItem(localItem)(a0)
FindLocalItem(iff,type,id,ident)(a0,d0/d1/d2)
StoreLocalItem(iff,localItem,position)(a0,a1,d0)
StoreItemInContext(iff,localItem,contextNode)(a0/a1/a2)
*-------- IFFHandle initialization
InitIFF(iff,flags,streamhook)(a0,d0,a1)
InitIFFasDOS(iff)(a0)
InitIFFasClip(iff)(a0)
*-------- Internal clipboard support
OpenClipboard(unitnum)(d0)
CloseClipboard(clipboardhandle)(a0)
*-------- Miscellaneous crud
GoodID(id)(d0)
GoodType(type)(d0)
IDtoStr(id,buf)(d0,a0)
##end
